$scriptDirectory = $PSScriptRoot
$projectDir1 = Split-Path $scriptDirectory -Parent
$projectDir = Split-Path $projectDir1 -Parent
Write-Host "ProjectDir: $projectDir"

# 如果获取
Write-Host "1.1 cd $projectDir/common/CoffeeUi"
cd $projectDir/common/CoffeeUi

Write-Host "1.2 git add commit and push"
git add .
git commit -m "update"
git push

Write-Host "2.1 cd $projectDir/common/CoffeeSdk"
cd $projectDir/common/CoffeeSdk

Write-Host "2.2 git push"
git add .
git commit -m "update"
git push


Write-Host "3.1 cd $projectDir"
cd $projectDir

Write-Host "3.2 git push"
git add .
git commit -m "update"
git push